package com.hkg.springcloud.dao;

import com.hkg.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface PaymentDao {
    //添加
    int create(Payment payment);

    //查询
    Payment queryPaymentById(@Param("id") Long id);

    //取消
    int delete(@Param("id") Long id);

    //查询所有
    List<Payment> queryAll();

    //清除所有
    int deleteAll();


}
